package com.anycc.cloud.core.dto;

import com.anycc.cloud.core.entity.Module;
import lombok.Data;

import java.io.Serializable;

/**
 * breadcrumb
 */
@Data
public class Breadcrumb implements Serializable {
    private static final long serialVersionUID = -7094487755592997300L;
    private String name;
    private String icon;
    private String url;

    public Breadcrumb() {
    }

    public Breadcrumb(String name) {
        this.name = name;
    }

    public Breadcrumb(String name, String icon) {
        this.name = name;
        this.icon = icon;
    }

    public Breadcrumb(String name, String icon, String url) {
        this(name, icon);
        this.url = url;
    }

    public Breadcrumb(Module module){
        this.name=module.getName();
        this.icon=module.getIcon();
    }
}
